#!/usr/bin/env python
# -- coding: utf-8 --
# author：马海晨
# time:2025/4/26
from bases.base_page import BasePage

class LoginPage(BasePage):
    username_loc ="//input[@name='username']"
    password_loc ="//input[@name='password']"
    submit_loc ="//button[@type='submit']"

    def login(self,username,password): # 登录操作
            self.find_ele(self.username_loc).send_keys(username)
            self.find_ele(self.password_loc).send_keys(password)
            self.find_ele(self.submit_loc).click()